<form name="frmSearchListMember" id="frmSearchListMember" action="" method="">
<table border="0" cellspacing="1px" cellpadding="10px "align="center" width="100%">
	<tr>
  	<td align="left"><strong>Total:</strong>&nbsp;<{$TOTAL}></td>
    <td align="right"><{$NAVIGATION_PAGE}></td>
  </tr>
</table>
<table border="1" cellspacing="1px" cellpadding="10px "align="center" width="100%">
    <tr>
        <th width="20">#</th>
        <th width="30">Avatar</th>
        <th>Username</th>
        <th>Full name</th>
        <th width="100">Intake</th>
        <th width="60">Gender</th>
        <th width="60">Status</th>
				<th colspan="3" width="20">Action</th>        
    </tr>
    <{assign var='keyList' value='0'}>
    <{while $objListMember->fetch()}>
    <{assign var='keyList' value=$keyList+1}>
    <tr>
        <td><{$intStart+$keyList}></td>
        <td>
        	<img border="0" width="50" src="<{$smarty.const.APPLICATION_URL}>images/avatar/small_<{$objListMember->avatar}>" />
        </td>
        <td> <{$objListMember->username}> </td>
        <td> <{$objListMember->full_name}> </td>
        <td> <{if $objListMember->intake_id gt 0}><{$objListMember->intake_name}><{else}>N/A<{/if}> </td>
        <td> 
        	<select onchange="javascript:changeGender(this.value, <{$objListMember->id}>)" name="gender_<{$objListMember->id}>" id="gender_<{$objListMember->id}>">
          	<option value="-1"<{if $objListMember->gender lt 0}> selected="selected"<{/if}>>&nbsp;&nbsp;N/A&nbsp;&nbsp;</option>
          	<option value="0"<{if $objListMember->gender eq 0}> selected="selected"<{/if}>>&nbsp;&nbsp;Male&nbsp;&nbsp;</option>
            <option value="1"<{if $objListMember->gender eq 1}> selected="selected"<{/if}>>&nbsp;&nbsp;Female&nbsp;&nbsp;</option>
          </select>
        </td>
        <td>
        	<select onchange="javascript:changeStatus(this.value, <{$objListMember->id}>)" name="status_<{$objListMember->id}>" id="status_<{$objListMember->id}>">
          	<option value="0"<{if $objListMember->status eq 0}> selected="selected"<{/if}>>&nbsp;&nbsp;Inactive&nbsp;&nbsp;</option>
            <option value="1"<{if $objListMember->status eq 1}> selected="selected"<{/if}>>&nbsp;&nbsp;Active&nbsp;&nbsp;</option>
          </select>
        </td>
        <td align="center">
        	<a href="javascript:viewMember(<{$objListMember->id}>)" title="View">View</a>
        </td>
        <td align="center"> 
        	<a href="javascript:editMember(<{$objListMember->id}>)" title="Edit">Edit</a>
        </td>
        <td align="center"> 
          <a href="javascript:deleteMember(<{$objListMember->id}>)" title="Delete">Delete</a>
        </td>
    </tr>
    <{/while}>
</table>
</form>